//
//  LUOYAOTestViewController.m
//  SZBank
//
//  Created by LuoYao on 16/7/8.
//  Copyright © 2016年 LuoYao. All rights reserved.
//

#import "LUOYAOTestViewController.h"
#import "ButtonAndTableView.h"


@interface LUOYAOTestViewController ()<ButtonAndTableViewDelegate>

@end

@implementation LUOYAOTestViewController

- (void)viewDidLoad {
    [super viewDidLoad];

    self.view.backgroundColor = [UIColor whiteColor];
    
    //测试封装视图
    NSDictionary *dic = @{@"title":@"测试Button",@"list":@[@"1231311",@"3123123123",@"131232142"]};
    ButtonAndTableView *bt = [[ButtonAndTableView alloc] initWithFrame:CGRectMake(KWIDTH * 0.3, KHEIGHT * 0.3, KWIDTH * 0.2, 60) dataSource:dic backImageName:@"" selectImageName:@""];
    bt.delegate = self;
    
    [self.view addSubview:bt];
    
    
}


- (void)btnTableView:(ButtonAndTableView *)btnTableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath selectTitle:(NSString *)selectTitle{
    NSLog(@"选中title:%@",selectTitle);
}

@end
